<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


<%@ page import="org.vectrics.recruiter.config.RecruitConfig" %>
<%@ page import="org.vectrics.recruiter.job.Job" %>
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="org.vectrics.recruiter.config.*" %>
<%@ page import="org.vectrics.recruiter.struts.admin.AdminJobForm" %>

<jsp:useBean id="emailedResumeForm" class="org.vectrics.recruiter.struts.admin.EmailedResumeActionForm" scope="request"/>

<vectrics:errors debug="false"/>
<%
	Logger log = Logger.getLogger(this.getClass());
	
	log.debug("getting params");
	String emailedResumeId = request.getParameter("emailedResumeId");
%>


<html:form action="admin/jobs/emailedResumes/view" method="POST" focus="functionCode">
	<html:hidden property="emailedResumeId"/>

	<table>
		<tr>
			<td valign="TOP">
				<table width="600" cellpadding="4" cellspacing="1">
					<tr>
						<td class="formBg2">
							<font class="stdFont"><bean:message key="prompt.emailed.resume.from.email"/></font>
						</td>
						<td class="formBg2">
							<font 	class="stdFont">
								<bean:write 
									name="emailedResumeForm" 
									property="fromEmailAddress"/>
								</font>
						</td>
					</tr>				

					<tr>
						<td class="formBg1" valign="top"><font class="formLabelClass">EMail Subject</font></td>
						<td class="formBg1" valign="top">
							<vectrics:emailedResumeSubject emailedResumeId="<%=emailedResumeId%>"/>
						</td>
					</tr>

					<tr>
						<td class="formBg2" valign="top"><font class="formLabelClass">Attachments</font></td>
						<td class="formBg2" valign="top">
							<vectrics:emailedResumeAttachmentList emailedResumeId="<%=emailedResumeId%>"/>
						</td>
					</tr>
					
					<tr>
						<td colspan="2">
							<table cellpadding="0" cellspacing="0">
								<tr>
									<td>
										<vectrics:formButton name="nextAttach" code="public.button.wide" phraseCode="button.next" 
											elementId="next.btn" value="submit"/>
									</td>
									<td>&nbsp;</td>
									<td>
										<vectrics:formButton name="dispose" code="public.button.wide" 
										        elementId="dispose.btn"
												phraseCode="button.dispose.email" value="submit"/>
									</td>
									<td>&nbsp;</td>
									<td>
										<vectrics:formButton name="cancel" code="public.button.wide" 
										 elementId="cancel.btn" phraseCode="public.button.finish.later" value="submit"/>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>